package com.dc.gameserver.extComponents.springRabbitmq;

import org.springframework.amqp.core.AmqpTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author 石头哥哥</br>
 *         Date:14-3-8</br>
 *         Time:下午8:55</br>
 *         Package:com.dc.gameserver.extComponents.springRabbitmq</br>
 *         Comment：
 */
@Service
public class MyMqGatway {
    @Autowired
    private AmqpTemplate amqpTemplate;

    public void sendDataToCrQueue(Object obj) {
        amqpTemplate.convertAndSend("queue_one_key", obj);
    }
}
